﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Log.aspx.cs" Inherits="Default_Log" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link rel="Stylesheet" href="../css/tablesorter.css" />
     <style type="text/css">
        hr
        {
            height:1px;
            color:#62A7D9;
        }
        body  
        {
            font-size:62.5%;
        }
        .divradius
        {
            font-size:12px;
            text-align:right;
            vertical-align:middle;
            height:36px;
            border:1px solid #62A7D9;
            background-color:#FFFFFF;
            -moz-border-radius:4px;
            -webkit-border-radius:4px;
            border-radius: 4px;
  	        behavior: url(<%=ResolveUrl("~/js/ie-css3.htc")%>);
        }
    </style>
     <link rel="Stylesheet" href="../css/tablesorter.css" />
    <link rel="Stylesheet" href="../css/popdialogbox.css" />
    <link rel="stylesheet" href="../css/jquery-ui-1.8.16.custom.css" type="text/css"/>
    <link rel="Stylesheet" type="text/css" href="../css/tablesorter.css" media="print, projection, screen" />
    <script type="text/javascript" src="<%=ResolveUrl("~/js/jquery-1.4.2.min.js")%>"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/js/jqueryui/jquery.ui.core.js")%>"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/js/jqueryui/jquery.ui.widget.js")%>"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/js/jqueryui/jquery.ui.tabs.js")%>"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/js/jqueryui/jquery.ui.button.js")%>"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/js/jqueryui/jquery.ui.datepicker.js")%>"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/js/popupdialogbox.js")%>"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%=txtAddStartDate.ClientID%>").datepicker();
            $("#<%=txtAddStartDate.ClientID%>").datepicker("option", "dateFormat", "yy-mm-dd");
            $("#<%=txtAddEndDate.ClientID%>").datepicker();
            $("#<%=txtAddEndDate.ClientID%>").datepicker("option", "dateFormat", "yy-mm-dd");
        });
    </script>
</head>
<body style="width:96%">
    <form id="form1" runat="server">
    <div style="text-align:center;">
     <div class="divradius" style="text-align:right; vertical-align:middle">
        <table style="margin-top:5px">
        <tr>
            <td>&nbsp;&nbsp;账号登录日期:</td>
            <td><asp:TextBox runat="server" ID="txtAddStartDate" Width="70"/></td>
            <td><label>至</label></td>
            <td><asp:TextBox runat="server" ID="txtAddEndDate" Width="70"/></td>
            <td>&nbsp;&nbsp;<label>软件名称</label></td>
            <td><asp:DropDownList runat="server" ID="ddlSoftType" Width="150"/></td>
            <td>&nbsp;&nbsp;用户名:</td>
            <td><asp:TextBox runat="server" ID="txtUserName" Width="80"/></td>
            <td>&nbsp;&nbsp;<asp:Button ID="Button2" runat="server" Text="查 询" onclick="btnQuery_Click" /></td>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Button1" runat="server" Text="删除列表数据" onclick="btnDelete_Click" />
            </td>
            <td>&nbsp;&nbsp;
            <asp:Button ID="btnDeleteAll" runat="server" Text="删除全部数据" onclick="btnDeleteAll_Click" />&nbsp;&nbsp;
            </td>
            <td>&nbsp;&nbsp;
            <asp:Button ID="btnReset" runat="server" Text="重置" onclick="btnReset_Click" />&nbsp;&nbsp;
            </td>
        </tr>
        </table>
        </div>
        <hr />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"  CssClass="tablesorter"
            EnableModelValidation="True"
            onrowdatabound="GridView1_RowDataBound"
            onrowcommand="GridView1_RowCommand" 
            onrowdeleting="GridView1_RowDeleting" 
            onrowdeleted="GridView1_RowDeleted" 
            >
            <Columns>
                <asp:BoundField HeaderText="序 号" DataField="AutoId" Visible="false" />
                <asp:BoundField HeaderText="用户名" DataField="UserName" />
                <asp:BoundField HeaderText="软件名称" DataField="SoftName" />
                <asp:BoundField HeaderText="登录时间" DataField="LoginDate" />
                <asp:BoundField HeaderText="登录IP" DataField="IpAddress" />
                <asp:CommandField HeaderText="删 除" ShowDeleteButton="True" />
            </Columns>
            <HeaderStyle Height="28px" />
        </asp:GridView>
        
    </div>
    </form>
</body>
</html>
